package com.bdroidovore.app;

import android.app.Activity;
import android.net.Uri;
import android.os.Bundle;
import android.widget.Button;
import android.widget.EditText;
import android.content.Intent;
import android.view.View;

public class bdroidovore extends Activity implements View.OnClickListener{
	
	private Button bSearch;
	private EditText tSearch;
	
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        bSearch = (Button)findViewById(R.id.bSearch);
        bSearch.setOnClickListener(this);
        tSearch = (EditText)findViewById(R.id.tSearch);  
    }
    
    public void onClick(View v){
    	if (v == bSearch){
    		//final String requete = "http://www.bdovore.com/membres/search.php?str_search="+tSearch.getText()+"&Submit=Envoyer&cb_album=cb_album&cb_serie=cb_serie&cb_aut=cb_aut";
    		//Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(requete));
    		Intent intent = new Intent(bdroidovore.this, SearchResult.class);
    		startActivity(intent);
    	}
    }
}